package com.wy.panda.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * 用户与角色对应关系
 * 
 * @author wangyuan
 * @date 2020-09-11 23:46:39
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder
@EqualsAndHashCode(callSuper = true)
@TableName("t_sys_user_role")
public class SysUserRoleEntity extends BaseEntity {

	/**
     * 
     */
    private static final long serialVersionUID = 2121943088094602226L;
    /**
	 * 主键
	 */
	@TableId
	private Long id;
	/**
	 * 用户ID，外键
	 */
	private Long userId;
	/**
	 * 权限ID，外键
	 */
	private Long roleId;
}
